Added database config for ES