changed sqlite3 to pg for production