Added insert for mongodb.