add mongo pipeline