Implemented updating the recognition database when renaming a category.