added mongodb function
Merge branch 'dev'