Middleware for accessing SQL databases.