another try to fix database corruption