alter table lightcurves drop column spectral_index_error;

alter table frequencies drop constraint Frequencies_TaskGroupList_FK;
alter table energybands drop constraint EnergyBands_TaskGroupList_FK;
ALTER TABLE Rois drop CONSTRAINT Rois_TaskGroupList_FK;

alter table frequencies drop column group_id;
alter table energybands drop column group_id;
alter table rois drop column group_id; 

drop table TaskGroupList;
