         frameworkSnapshot["Coldfusion ID"] = fwString;
     }
 
-    var databaseInfo = {};
+    databaseInfo = {};
     if( (
             isStruct( oException.getExceptionStruct() )
             OR findNoCase( "DatabaseQueryException", getMetadata( oException.getExceptionStruct() ).getName() )
           ) AND findnocase( "database", oException.getType() )
     ){
-        var databaseInfo = {
+        databaseInfo = {
           "SQL State": oException.getSQLState(),
           "NativeErrorCode": oException.getNativeErrorCode(),
           "SQL Sent": oException.getSQL(),
           "Driver Error Message": oException.getqueryError(),
-          "Name-Value Pairs": oException.getWhere(),
+          "Name-Value Pairs": oException.getWhere()
         };
 
     }

    catch( any e ){
        local.thisInetHost = "localhost";
    }
    var EventDetails = {
        "Error Code":        (oException.getErrorCode() != 0) ? oException.getErrorCode() : "",
        "Type":              oException.gettype(),
        "Extended Info":     (oException.getExtendedInfo() != "") ? oException.getExtendedInfo() : "",

        "View":              event.getCurrentView(),
        "itemorder": ["Error Code","Type","Message","Detail","Extended Info","Event","Route","Route Name","Routed Module","Routed Namespace", "Routed URL","Layout","Module","View"]
    }
    frameworkSnapshot = {
        "Coldfusion ID" :"Session Scope Not Enabled",
        "Template Path" : CGI.CF_TEMPLATE_PATH,
        "Path Info"     : CGI.PATH_INFO,
