set up subcategory db relationships