public static Connection getSearchInstance(){
			Connection con = null;
				try {
					try {
						if(new File(filepath).exists()){
							CSVReader reader;
							try {
								reader = new CSVReader(new FileReader(filepath));
						    String [] nextLine;
						    while ((nextLine = reader.readNext()) != null) {
						        // nextLine[] is an array of values from the line
						    	if(nextLine.length == 1){
						    		url = nextLine[0]; user = ""; passwd = "";
						    	}
						    	else if(nextLine.length == 2){
						    		url = nextLine[0]; user = nextLine[1]; passwd = "";
						    	}
						    	else if(nextLine.length == 3){
						    		url = nextLine[0]; user = nextLine[1]; passwd = nextLine[2];
						    	}
						    }
						    reader.close();
							} catch (FileNotFoundException e) {
								// TODO Auto-generated catch block
								e.printStackTrace();
							}
							
						}
							} catch (FileNotFoundException e) {
								// TODO Auto-generated catch block
								e.printStackTrace();
							}
					try{	
						con = DriverManager.getConnection(url, user, passwd);
					} catch (SQLException e) {
						e.printStackTrace();
						UIManager.put("OptionPane.okButtonText", "fait chier !!!");
						JOptionPane.showMessageDialog(null, "la connexion à la base de donnée a échoué", "erreur de connexion", JOptionPane.ERROR_MESSAGE);
							new Connection_set_adress();
						
					}
					//new Connect();
				} catch (IOException e) {
					e.printStackTrace();
				}
			return con;	
		}