add TaskDbServer interface and fixed some issue