update model.php