Fix pg/sqlite3 issue