added mysql group to sql-using functions