added has_many:products and inverse_of to brand and category models