divided create table & data grabber into 2 scripts