Prepare the category tree on application init