Modify how to deal with mongodb
Add a optional paramter in initilization
Change error handling message
variable name change
Merge pull request #6 from redbeacon/mongo-error-handling

Modify how to deal with mongodb