Add unique constraint on attributestore to prevent name collisions.