Updated to write to config_plugin table