fix restfulMongo instance's creation

fix restfulMongo instance's creation for the example project