swapped in pg for sqlite3