create index script