Keep a backup of the recognition database and restore it if the changes are discarded.