Added method that checks for duplicate names.

Had to change the DBBaseObject class to do it,

which suggests that as these things become more

hairy, our generic object may become bloated.