change term to be a string field to the course table