update SYSPARAMETERS set VALUESTRING = '1'  where CONTEXT = 'SYSTEMINFO' and name = 'DBVersionHigh';
update SYSPARAMETERS set VALUESTRING = '107' where CONTEXT = 'SYSTEMINFO' and name = 'DBVersionLow';
update SYSPARAMETERS set VALUESTRING = '2004-09-30' where CONTEXT = 'SYSTEMINFO' and name = 'DBCreationDate';

create generator DYNAENTRIES_SEQ;
select 'set generator DYNAENTRIES_SEQ to ' || (max(daentyrid)) || ';' from dynattributes;

commit;