Made the doQuery profile items only show the full SQL statement if the ShowTrace param is ste to screen. Added total execution time to the profiler output.