Error handling and other fixes
Merge branch 'gui' of https://github.com/jon2512chua/Honours-Marks-Database.git into gui