added associations for ad and category_of_ad