public static Connection getConn() {
    	Connection conn = null;
       try {
    	   Class.forName(driver);
    	   conn = DriverManager.getConnection("jdbc:mysql://"+ip+":3306/?useUnicode=true&characterEncoding="+encode, user , pwd);
    	   //conn = DriverManager.getConnection("jdbc:sqlite:"+databaseName);
       } catch (Exception e) {
        	e.printStackTrace();
    	}
       return conn;
    }