Added method to retrieve objects by query from DAL