if framework.db.active
        credential_data = {
          address: thost,
          port: tport,
          protocol: 'tcp',