added statements to addKlasse and addTeacher

Now the primary key of newTeacher and newKlasse are checked, whether they are allowed.