enhanced query objects for activerecord