SERVER-12324 replaced std::stream with str::stream in db/query and db/exec