Group by query type not query
Added header line in formatted output
Execute preparation of users once before warmup