make SubjectRepository with derby db
apply Sergey fix for save method