edit from pg to sqlite3