public static boolean isClosed() {
        if (con == null) return true;
        try {
            return con.isClosed();
        } catch (SQLException ex) {
            ex.printStackTrace();
        }
        return false;
        
    }