Fixed a typo and a comment
Implemented mongoDB functionality