Create global database reference before creating routes so it’s available from global scope
I want to initialise tables with data outside of my routes.
db reference is only available within route bodies, not from the global scope outside of the route bodies in route files.
Move the creation of the lazy database handler / loader before the app route configuration so that
db will be available from global scope on route files.