Repair an RPM database safely
Further investigation of the rpm badness has led me to this information.