Feature request: Show SQL stmt for flamegraphs + whether cached or not

Currently the flamegraph does not contain sql query info, and the regular trace does not capture it either.
I saw there’s some reason related to timing of sql vs APIs, but would be really nice to have the sql stmts in the regular trace and even better if they also showed up in the flamegraph as an attribute or its own node (then you could select it and identify the same query with different params and similar)

The second related part of the feature request is to also show CACHED queries. Today it only shows actual DB queries, but not ones served by the local cache.