adding script to rebuild indexes
working around spurious index_create/index_rename failures in the index-rebuild script