- Handle the case when the aforementioned query-method fails with some unhandleable error. In this case the app retries 1 time and if it fails again, then if this has happened during initialization, the app shuts down, else the incident is ignored and the app will retry after 6 hours when the method is scheduled to run again.
- In case of an error retrieving data from the DB during initialization, gently shutdown the App. There is no point keeping the app running just to serve 500-Server-Errors.
- Code polishing.