APM DB query to extract Total transaction and Slow time defects