Added some integration tests for postgres, working on sqlite3.