added unique name

This adds a unique name field to the smart manager model and copies over the class name in a data migration. A numerical index is appended to the name to ensure uniqueness since there was no constraint on the class name.