Read an object from the database.
If GIT_ENOTFOUND then out->data is set to NULL.
object descriptor to populate upon reading.
database to search for the object in.
identity of the object to read.