register query store to ES and mongo