public ArrayList ResultSetToString(ResultSet rs) {
        String temp = "";
        ArrayList<String> resultat = new ArrayList<>();
        try {
            ResultSetMetaData rsMetaData = rs.getMetaData();

            for (int i = 1; i <= rsMetaData.getColumnCount(); i++) {
                if (i == 1) {
                    temp = rsMetaData.getColumnName(i);
                } else {
                    temp = temp + " " + rsMetaData.getColumnName(i);
                }

            }
            resultat.add(temp);

            while (rs.next()) {
                temp = "";
                for (int i = 1; i <= rsMetaData.getColumnCount(); i++) {
                    if (i == 1) {
                        temp = rs.getString(i);
                    } else {
                        temp = temp + " " + rs.getString(i);
                    }

                }

                resultat.add(temp);

            }
        } catch (SQLException se) {
            System.out.println("We got an exception while getting a result:this"
                    + " shouldn't happen: we've done something really bad.");
            System.out.println(se.getMessage());

        }
        return resultat;
    }