added mongodb call