Added relationships for categories and statuses