adding and deleting courses backend connection