Fixed some sqlite3 code.