public String toString() {
        String string = "";

        for(String key : params.keySet()) {
            string += key + ": " + params.get(key) + "\n";
        }

        if (metadata != null) {
            for(NameTypePair item : metadata) {
                string += item.getName() + ": " + item.getType() + "; ";
            }
        }
        string += "\n";

        if (data != null) {
            for(Object[] row : data) {
                for(Object item : row) {
                    string += item + "; ";
                }
                string += "\n";
            }
            string += "\n";
        }

        return string;
    }