Run query and recreate index every run

I am gone a drop this logic as no one have tested or knowledge about it. and I will have to find some other way to do it.