changes to fit pymongo v2.5 on mongodb module; assign a special logger for mongodb.dstruct