update the config for plaintext & db