add training to student to db

with some bugs (i think with singelton)