code: protected boolean beginTransaction(SQLiteDatabase db) {
  		boolean endTransaction = false;
  		if (!db.inTransaction()) {
  			db.beginTransaction();
  			endTransaction = true;
  			LOGGER.trace("Begin transaction");
  		}
  		return endTransaction;
  	}
docs: Begins a transaction if there is not a transaction started yet.
  
  @param db Database.
  @return true if a transaction has been started.