Cleanup/Fix pgsql update files

Cleaned up the update files for Postgresql.
1_27_2014 transaction is still broken though....
Fix DB.php for Postgres