code: public SQLiteDatabase openWritableDatabase() {
  		lockDb.lock();
  		try {
  			if (sqliteHelper == null)
  				createHelper(options);
  
  			status.set(TypeStatus.READ_AND_WRITE_OPENED);
  
  			if (openCounter.incrementAndGet() == 1) {
  				// open new write database
  				if (database == null) {
  					sqliteHelper.setWriteAheadLoggingEnabled(true);
  					database = sqliteHelper.getWritableDatabase();
  				}
  				if (logEnabled)
  					Logger.info("database OPEN %s (connections: %s)", status.get(), (openCounter.intValue() - 1));
  			} else {
  				if (logEnabled)
  					Logger.info("database REUSE %s (connections: %s)", status.get(), (openCounter.intValue() - 1));
  			}
  		} finally {
  			lockDb.unlock();
  			lockReadWriteAccess.lock();
  		}
  
  		return database;
  	}
docs: <p>
  open a writable database.
  </p>
  
  @return writable database