adding elasticsearch connection