model.php update