update subject attendance