private void verifyRequest(String unitRequest) {
        //if (unitRequest.contains("Lamp") || unitRequest.contains("LAMP")|| unitRequest.contains("lamp")) {
			/*
         * Now we know which device we are supposed to send the command to.
         */
        if (unitRequest != null) {
            this.unitRequest = unitRequest.split(":");
            device = this.unitRequest[0].trim();
            command = this.unitRequest[1].trim();
        }
        DatabaseQuery dbq = new DatabaseQuery();
        for (int i = 0; i < dbq.readFromDatabase().size(); i++) {
            String[] deviceinfo = ((String) dbq.readFromDatabase().get(i)).split(":");
            if (device.equals(deviceinfo[0].trim()) && command.equals(deviceinfo[1].trim())) {
                System.out.println("This command is already executed on devices");
                pw.println("This command is already executed on devices");
            } else if (device.equals(deviceinfo[0].trim()) && command != (deviceinfo[1].trim())) {
                System.out.println("Unit received following from server : " + unitRequest);
                readOrWriteFromFile row = new readOrWriteFromFile();
                row.writeToFile(userAndPass, unitRequest);
                mts.sendToDevice(unitRequest);
            }

        }
    }