add index building script and indexes