Added insert and delete logic for MongoClient