Use pg instead of sqlite3