public static void editMember(Member m){
		
		try {
			   if(conn == null || conn.isClosed()){
			    conn = DatabaseConnection.getConnection();
			   }
			  } catch (SQLException e1) {
			   // TODO Auto-generated catch block
			   e1.printStackTrace();
			  }
		
		Adress a = m.getAdress();
		try{
			conn.setAutoCommit(false);
			PreparedStatement stmnt = conn.prepareStatement("UPDATE Members set name = ?, first_name = ?, phone_num = ?, address_id = ? WHERE member_id = ?");
			
			stmnt.setString(1, m.getName());
			stmnt.setString(2, m.getSurname());
			stmnt.setString(3, m.getTelnr());
			stmnt.setInt(4, a.getAdressID());
			stmnt.setInt(5, m.getLidID());
			
			stmnt.execute();
			conn.commit();
			conn.setAutoCommit(true);
		
		}catch(SQLException e){
			System.out.println("update fail!! - " + e);
		}
	}