added mongodb support using mongoose
store changes in mongoose