Add error handling and logging for monogodb/mysql login.
Add mongodb datastore flag.
Merge pull request #46 from fangdiantong/yiling

Add error handling and logging for monogodb/mysql login.