query update for mongo