Fixed sqlite3 fiasco