update courses table.