update sql script, schedules data input and alter table column