public void connect() {
  
        try{
            // Register JDBC driver
            Class.forName(jdbcDriver);

            // Open a connection
            connection = DriverManager.getConnection(url, name, password);
            statement = connection.createStatement();
             
            
        }catch(SQLException se){
            //Handle errors for JDBC
            se.printStackTrace();
        }catch(Exception e){
            //Handle errors for Class.forName
            e.printStackTrace();
        }
    }