Update application/models/index_model.php