Added exception for settings not having ES_DATABASE