Sqlite fix