added pg instead of sqlite3