Fix sql problem of configuration management and fix php error of network discovery