Changes to db:aggregate()

- removed redundant order_by block. The given aggregate functions don't care about ordering anyways (and the function had no order_by argument)
- return an value type. All supported aggregate functions but MIN and MAX always return floating point values. MIN and MAX return the data type of the column.