Add name uniqueness to relationship table