Fixed handling of demotions in Categorizer._find_cat_changes() and added section to fix max levels from db.badges_begun