Update mongo library for deprecated issues