public Object[][] getRecords(String Query) {
        Object data[][] = null;
        int c = 0;
        try {
            try {
                int rows = 0;
                Statement st = con.createStatement();
                Statement st1 = con.createStatement();
                rs = st.executeQuery(Query);
                rs1 = st1.executeQuery(Query);
                while (rs1.next()) {
                    rows++;
                }
                rs1.close();
                int size = rs.getMetaData().getColumnCount();
                String colNames[] = new String[size];
                for (int i = 0; i < size; i++) {
                    colNames[i] = rs.getMetaData().getColumnName(i + 1);
                }
                data = new Object[rows + 1][colNames.length];
                System.arraycopy(colNames, 0, data[0], 0, colNames.length);
                c++;
                while (rs.next()) {
                    for (int j = 0; j < colNames.length; j++) {
                        data[c][j] = rs.getObject(j + 1);
                    }
                    c++;
                }

            } catch (SQLException s) {
                System.out.println(s);
            }
        } catch (Exception eee) {
            System.out.println(eee);
        }

        return data;
    }