fixed sqlite3 problem