use postgresql instead of sqlite3