public void close() {

    if (mDatabase != null || mDatabase.isOpen()) mDatabase.close();
  }
 public boolean isOpen() {
   return mDatabase.isOpen();
 }
 public void open() {
   if (mDatabase != null || !mDatabase.isOpen()) mDatabase.open();
 }