Add GROUP BY functionality to PHP SQLHelper.