Sqlite Fixes