title: Can't run GOSU queries in scratchpad
body: <p>Recently I upgraded my Guidewire studio from version 8 to 9. From that onwards the database Queries are throwing error while running in scratchpad. The same code works fine in version 8. Please find the code and the error below.</p>
  
  <p>CODE </p>
  
  <pre><code>var object = gw.api.database.Query.make(Account).select()
  print("Count : "+object.Count)
  </code></pre>
  
  <p>ERROR</p>
  
  <pre><code>gw.lang.parser.exceptions.ParseResultsException: Gosu Scratchpad.gsp
  
  Errors:
  
  Could not resolve symbol for : Account [line:3 col:41] in
  line 2:
  line 3: var object = gw.api.database.Query.make(Account).select()
  
  Expected Type: Type&lt;T&gt;
  Line Number: 3  Column: 41
  
  Could not resolve symbol for : Account [line:3 col:41] in
  line 2:
  line 3: var object = gw.api.database.Query.make(Account).select()
  
  Expected Type: Type&lt;T&gt;
  Line Number: 3  Column: 41
  
  
      at gw.internal.gosu.parser.ParserBase.verifyParsedElement(ParserBase.java:283)
      at gw.internal.gosu.parser.ParserBase.verifyParsedElement(ParserBase.java:254)
      at gw.internal.gosu.parser.GosuClassParser.parseDefinitions(GosuClassParser.java:471)
      at gw.internal.gosu.parser.GosuClass.compileDefinitionsIfNeeded(GosuClass.java:1539)
      at gw.internal.gosu.parser.GosuClass.compileDefinitionsIfNeeded(GosuClass.java:1482)
      at gw.internal.gosu.parser.GosuClass.isValid(GosuClass.java:919)
      at gw.internal.gosu.parser.GosuProgram_Proxy.isValid(gw.internal.gosu.parser.GosuProgram_Proxy:2)
      at gw.internal.gosu.parser.GosuProgramParser.parseExpressionOrProgram(GosuProgramParser.java:190)
      at gw.lang.Gosu.runWithFile(Gosu.java:425)
  </code></pre>
  
  <p>Any Help will be greatly appreciated.</p>