adds mongo batching