attempting to create the new window with queries

cant have access to connection or performquery(). any tips so i can pop
up the desired data.