dump(): fixDBHistoryEntries first (if any broken exist).