Don't use the `get_pretty_app_names()`. those are not the ones that are expected in the black/whitelist lists
Also try to instantiate ApplicationsDatabase on a single line in a var and use it later, easier to debug.