Added TraceWritter sql