threadpool to execute calendar query