title: How to clean/delete greenDao database
body: <p>Currently I'm doing it like this:</p>
  
  <pre><code>DaoMaster.dropAllTables(getDb(), true);
  DaoMaster.createAllTables(getDb(), true);
  </code></pre>
  
  <p>but then, when I'm trying to add entity to the database, I'm getting crash log saying that this table isn't exist</p>
  
  <p>Edit1:
  I know that it happens because the db is locked and tables wasn't created yet. So I'm reducing this problem to the problem - how to know if the tables are locked in grrenDao/Sqlite?</p>