Added exception when file or category is missing when adding a new entry at the courses database