Ark
resolves #1920 - updates all files to conform to style settings.
refs #3864 - map alternative valid pg names to pg
refs #2499 - Properly reference pg client - Fix broken sql queries
refs #2600 - fixed issue with defaults not being populated on upgrade - added logging to all actions in the migration process to help debugging in future - did a little bit of refactoring