Update application/model.php