Fix for regenerating results tables:
Moved 'drop table' into create table optional parameter.
delete from results table only for analysis specified in ID list.