update associations for tag, comment and category