Added bulk stop insertion with MongoDB and safeguards for single insertion