updated sql file with nextval/currval but foreign keys using them don't
correspond to right values. tested updateDelivDate in Purchase