Coded update.php for cron job