added M:M association between categories and posts