Add XUACompatibleMiddleware
Raise MiddlewareNotUsed when not DEBUG in SQLPrintingMiddleware