Refactored ModelBase.php
Merge branch 'refactoring' of github.com:Daniel2015/IExam into refactoring