public void connect(){
        try {
            Class.forName("com.mysql.jdbc.Driver").newInstance();
            connection = DriverManager.getConnection("jdbc:mysql://localhost:3306/ftp?characterEncoding=latin2","root","");
        }
        catch(ClassNotFoundException e){
            System.out.println("ClassNorFound");
        }
        catch(InstantiationException e){
            System.out.println("Instatiation");
        }
        catch(IllegalAccessException e){
            System.out.println("IllegalAccess");
        }
        catch(SQLException e){
            System.out.println("SQLExc");
            e.printStackTrace(System.out);
        }
    }