Update the aggregation output to two different collections

@Santosh_Gonsalves, I have spent time working on your issue. I think I have provided valuable information. I would appreciate a followup and perhaps closure with one of my post marked as the solution.