Fixed Sqlite error