making sure pivot/entity types are uniquely named