Implemented mongo Namespace

Implemented a mongo namespace and removed some macros.