title: ScriptDB Replacement
body: <p>I have a script that looks something like this:</p>
  
  <pre><code>function clearDatabase() 
  {
    var db = ScriptDb.getMyDb();
       while (true) {
         var result = db.query({}); 
        if (result.getSize() == 0) 
          {
            break;
          }
       while (result.hasNext()) {
        db.remove(result.next());
          }
      }
  }
  </code></pre>
  
  <p>Please pardon my wreck of formatting. What should I replace the ScriptDb with? I know it has been depreciated, and I also know that it doesn't have a direct replacement. Is there a way to keep the function without having to use CloudSQL?</p>