Switching over form Sqlite3 to Postgres