defined the has and belongs to many association between the event and category model
created the category table and join table between categories and events