Added the mongoose demo code