Using postgres instead of sqlite3