calibre-debug -c "from calibre.library import db; db = db().new_api; db.set_pref('user_categories', {})"