Add aggregate and group to Ruby SQLHelper.