code cleanup

[#55499468] cleaner syntax for mongo calls