change from pg to sqlite3 db