Added incremental save when using refdb edit