public boolean remove(DataRow row)
    {
        if(!checkUser())
        {
            return false;
        }
        boolean result;
        row = addIdentifyingParameters(row);
        DataRow removed = new DataRow(row.getTableName() + row.getName());
        removed.setTableName("removedData");
        removed.addAttribute("tableName", row.tableName);
        removed.addAttribute("objectName", row.getAttribute("name").getValue());
        removed = addIdentifyingParameters(removed);
        try
        {
            result = local.remove(row);
            local.insert(removed);
            if(server.checkConnection())
            {
                result = result && server.remove(row);
                server.insert(removed);
            }
        } catch(Exception e) {
            ErrorDialog errorDialog = new ErrorDialog(true, "Błąd operacji w bazie danych: \n" +  e.getMessage(), "DatabaseManager", "remove(DataRow row)", "row");
            errorDialog.setVisible(true);
            result = false;
        }
        return result;
    }