replace pg with sqlite3 again