using postgres instead of sqlite3