move course retrival to a recordset in copy_courses function
move error reporting for course copying into copy_courses function