Add more debug logs with the settings dict and database.