Updated to the latest mongo driver and fixed write safety syntax and spec accordingly