A little utility script to mimic the GROUP BY query command