Middleware for filling every request  with a MySQL database instance.