step one in fixing sqlitedb