added ES query to store data