updateing cores and starting queries script