changes examples to use mongodb