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