updated insert course and video funcs