update table of subjects in template/subject