private void connect(){
		try {
			if(!is_secondary()){
				name ="rmi://127.0.0.1:9090/server1";
				Naming.rebind(name, server);
				System.out.println("Server 1");
				connectBackupServer();
				if(backupServer != null) {
					System.out.println("hier!!!!!!!!!");
					db.refresh();
					backupServer.requestInit();
				}
			}
			else{
				try {
					ServerInterface remoteObj = (ServerInterface) Naming.lookup("rmi://127.0.0.2:9090/server2");
					remoteObj.ping();
					System.exit(0);
				}
				catch(Exception ex){
					name="rmi://127.0.0.2:9090/server2";
					Naming.rebind(name, server);
					System.out.println("Server 2");
					connectBackupServer();
					System.out.println("hier!!!!!!!!!");
					db.refresh();
					backupServer.requestInit();
				}
			}
			System.out.println("Server binded object successfull!");	
		} catch(Exception ex) {
			System.out.println(ex.getMessage());
			System.exit(0);
		}
		
	}