Adding the MongoDB part