grouped transactions using mongoDb aggregation