removed old query script