fixed sqlite3 issue