@WebMethod(operationName = "setMonitorData")
    public void setMonitorData(@WebParam(name = "device") String device, @WebParam(name = "md") MonitorData md) {
        dbHandler.updateDevices(device, md);
        
        if(md.getIsDeleted()) {
            dbHandler.deleteInterface(device, md);
        }
        else {
            if(md.getAPChanged()) {
                dbHandler.updateAccessPoints(device, md);
            }
            if (md.getInterfaceChanged()) {
                if (md.isWireless()) {
                    dbHandler.updateInterfaceWireless(device, md);
                }
                else {
                    dbHandler.updateInterface(device, md);
                }
            }
        }
    }