created partial _blogs.html.erb
added Category and Subcategory tables
fixed activerecord joins