update tags/category structure