Requrire changed to require_once in model.php