optimization for db access.
use CoInitializeEx(NULL,COINIT_MULTITHREADED) for multi-thread
scheduler get first new trans to run