Use middleware to release the database connection after each request
Use middleware to release the database connection after each request

Without this, Active Record's pool of database connections gets exhausted
after a certain number of requests.

alphagov/bouncer,alphagov/bouncer,alphagov/bouncer