added category and tag pivot tables.