adding script to rebuild indexes