More improvements to the sqlite3 driver