fix a bug of wrong varialbe name
merge
refactor mongodbUtil