Misc fixes

- Fixes failing transaction test for PostgreSQL
- Runs PostgreSQL tests on Travis
- Fixes the rest of the errors from the class name merge