Moved Methods to Struct

Slowly converting the project to c++ by adding a few simple methods to
the base mongo structure.