Added TraceLogger to get backtrace for executed queries

Added a TraceLogger that returns a backtrace for the executed query.
The backtrace returns the last 10 frames, and it also formats the frames for easy reading
@stof people complain about memory usage of a debugger? Are they also going to complain about grass because it's green? O_o