querying now returns objects instead of a hash ref