insert or update in takencourse