Added aggregate functions to postgresql guide