CORE-5598 Split tags table into tags and attached_tags