added alter table logic