public DatabaseGateway(String driver, String dbms, String dbase, String user, String pswd) {
    	
        this.driver = driver;
        this.dbms = dbms;
        this.dbase = dbase;
        this.user = user;
        this.password = pswd;
        this.dbaseName = dbms + "/" + dbase;
        
        try{
            Class.forName(driver);
            connection = DriverManager.getConnection(dbaseName, user, password);
            statement = connection.createStatement();
            
        } catch(SQLException e){
            System.err.println("can't connect to " + dbaseName + " because " + e);
        } catch(ClassNotFoundException e){
            System.err.println("can't find the the driver: " + this.driver);
        }
    }