added mongodb pipeline