[PATCH 3/3] add SQL tracing debug facility