script to create indexes