FUNC Use postgres instead of sqlite3