Replace $ConfId with $Opt["dbName"].
Replace $ConfMulticonf with $Opt["confid"].