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
And yes: we'd still want to see internal calls, as that exposes queries triggered by (for example) eager/lazy loading happening in unexpected locations of the codebase.