corrected update.php