Fixed Sqlite issue