Fix db connector duplication

bugfix when 2 batchs scheduler used at once that caused problem in posix monitor