Middleware to access SQL databases.