get_object function

Retrieve an object from a datasource