support database query tracing