Recovering a Corrupted Database