cleaned up code
Merge pull request #5 from chushao/mongoDB

cleaned up code