A much better way to ensure constraint name uniqueness

Reads all of the constraint names and makes sure to choose one that does not clash.