Build TagRelation table