Implemented the MongoDB repository.