Rack middleware for logging to SQL Server?

We use Sinatra and a Rack middleware called RequestLog
which from my research can be seen here:

RequestLog is used for logging and it logs the HTTP requests to

I am supposed to investigate changing the logging of the HTTP
requests to SQL server instead of mongodb.

Is there a Rack middleware that could be used for that, should I
modify a copy of RequestLog to do that, or what is a good approach to
look into ?