Database updated
Funtion deleteSubject added
Delet by subject id added
Save subject relations in the database