update trace mongo query and update mongo readPreference