fixed duallogger db issue