Retrieve objects by id