Added error message for DBObjectGateway

Prints out an error if the object being added is an invalid type.