public static ResultSet getData(Connection connection, String query) throws SQLException {
        Statement stm = connection.createStatement();
        ResultSet rst = stm.executeQuery(query);
        return rst;
    }