switch to postgres instead of sqlite3