Adds an object to this database object, and returns its Element ID.
A unique handle will be generated if handle is not supplied or is 0.