Need to re-save stateful if we create a new StateDocument when the stateful object is being saved to make sure the dbref is updated