fixed fetchEntitiesFromDB to return multiple es search result types;