getDatabaseSettings() can be called from different scopes