Recovering from a corrupted RPM database