Update resync_attachments.php