Change the type of exception we throw wen database settings are missing to be able to give a better error message
Actually use the setting for a global black and whitelist instead of always enabling it