fixing databases