Removed duplicate updates to make dry-run work

Extra calls to update and commit document removed. All 'active' calls are now in the 'if not dry-run' block, including the call to 'notify_embargo_expiry'.