Output slowest queries in files

Maybe I misunderstood what you mean about 'Add your own below', I rewrite the sample function to do real job.

- Output slowest queries in one file per query
- report real queries instead of fake