String lemma = "lemma_" + name; String entry = "entry_" + name;
String lemma = "\"lemma_" + name + "\""; String entry = "\"entry_" + name + "\"";
  public boolean importDictionary(String path, String name) {    if(path == null || name == null || path.equals("") || name.equals(""))    {      return false;    }        try    {           _importProgress = 0;      _shallStop = false;            // delete if necessary      String lemma = "lemma_" + name;      String entry = "entry_" + name;            _stm.execute("DROP TABLE IF EXISTS " + lemma);      _stm.execute("DROP TABLE IF EXISTS " + entry);            // create new ones      _stm.execute("CREATE TABLE " + lemma + "(lemma TEXT, lemma_lower TEXT, origin TEXT,id TEXT)");      _stm.execute("CREATE TABLE " + entry + "(id TEXT, entry TEXT)");            // we have to add a lot of data      _conn.setAutoCommit(false);            index(path, name);      DictionaryHead head = parseHead(path);            _conn.commit();      _conn.setAutoCommit(true);            // we need some indexes      _stm.execute("CREATE INDEX IF NOT EXISTS idx_lemma_" + name + " ON lemma_"        + name + " (lemma)");       _stm.execute("CREATE INDEX IF NOT EXISTS idx_entry_" + name + " ON entry_"        + name + " (id)");            // new entry in list of dics (or update if existing)      if(isImported(name))      {        _stm.execute("UPDATE imported_dics "          + "SET "          + "name=\"" + name + "\", "          + "title=\"" + head.title + "\", "          + "srcLanguage=\"" + head.srcLanguage + "\", "          + "destLanguage=\"" + head.destLanguage + "\", "          + "author=\"" + head.authorName + "\", "          + "date=\"" + new java.util.Date().getTime() + "\" "          + "WHERE name=\"" + name + "\"");      }      else      {        _stm.execute("INSERT INTO imported_dics (name, title, srcLanguage, destLanguage, author, date)" +          " VALUES(\""           + name +  "\", \""          + head.title + "\", \""          + head.srcLanguage + "\", \""          + head.destLanguage + "\", \""          + head.authorName + "\", "           + new java.util.Date().getTime() + ")");              }//      //ATTENTION: SQLite specific//      ResultSet result = stm.executeQuery("SELECT name FROM sqlite_master");//      while(result.next())//      {//        String lemma = "lemma_" + name;//        String entry = "entry_" + name;//        String table = result.getString(1);//        //        // delete if necessary//        if(table.equals(lemma))//        {//          stm.executeQuery("SELECT");//        }        //      }          }    catch(Exception ex)    {      ex.printStackTrace();      _importProgress = -1;      return false;    }        _importProgress = -1;    return true;  }