Added update capabilities for mongoose