fixing sqlitedb