public Connection establishConnection(){
        try {
            Class.forName(driver);
            con = DriverManager.getConnection(url,login,pwd);
            System.out.println("Connexion established");
        } catch (ClassNotFoundException ex) {
            //Logger.getLogger(MyConnection.class.getName()).log(Level.SEVERE, null, ex);
            System.out.println("Error loading driver"+ex.getMessage());
        } catch (SQLException ex){
            System.out.println("Establishment of connection problem"+ex.getMessage());
        }

        return con;
    }