public void connect() throws InstantiationException, ClassNotFoundException, IllegalAccessException, SQLException{      
        Class.forName("org.apache.derby.jdbc.ClientDriver").newInstance();
        conn = DriverManager.getConnection(url, usr, pwd);
    }