refactor mongodbUtil
merge