Fix DB Errors when adding student by secretary.