pg and sqlite3 fiasco