creating sql script cont'd