add SQL functions, COUNT, SUM, AVG