public String getName(String IP){
        try {
            resultSet = statement.executeQuery("SELECT name, status FROM "+Table+" WHERE IP ='"+IP+"'");
            while(resultSet.next()){
                System.out.println(resultSet.getString("name"));
                if(resultSet.getString("status").equals("alive"))
                    break;
            }
            return resultSet.getString("name");
            
        } catch (SQLException ex) {
            return null;
        }
    }