public Database getDatabaseCurrent() throws HiveException {
    String currentDb = SessionState.get().getCurrentDatabase();
    return getDatabase(currentDb);
  }
Get the Database object for current database
@return a Database object if this database exists, null otherwise.
@throws HiveException
ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java