I think that given the async nature of this now, we should move this code to an `init` call that you make on the middleware object, so that the app.js can block until it's completed.