completed persistence for nodejs