this should fix the database output
I think it is better for the parser to handle the aggregation of data