CS fix
Deprecated mongo driver function. This may cause conflicts with my other PR since I made the same change.