Db: added constrains to student_attendance