public Boolean updateDB() {
        Boolean diff = false;
        for (int i = 0; i < oldRows.size(); i++) {
            List<String> oldRow = (List) oldRows.get(i);
            List<String> newRow = (List) rows.get(i);
            if (!oldRow.equals(newRow)){
                User u = new User();
                u.setUserLogin(newRow.get(0));
                u.setUserPassword(newRow.get(1));
                u.setUserName(newRow.get(2));
                u.setUserSurname(newRow.get(3));
                u.setUserCity(newRow.get(4));
                u.setUserCountry(newRow.get(5));
                diff = userService.updateUser(oldRow.get(0),u);
            }
        }
        if (diff) {
            try {
                oldRows = (List) ObjectClonerService.deepCopy(rows);
            } catch (Exception e) {
                e.printStackTrace();
            }
            return true;
        }
        else return false;
    }