Read an object from the database.
This method queries all available ODB backends trying to read the given OID.
The returned object is reference counted and internally cached, so it should be closed by the user once it's no longer in use.
pointer where to store the read object
database to search for the object in.
identity of the object to read.