UpdateFinal for medan.php