Update sync.php