updating links.tags when tag is updated or deleted