public static String getReplEventIdFromDatabase(String dbName, Hive hiveDb) throws HiveException {
    Database database = hiveDb.getDatabase(dbName);
    String currentLastEventId = getLastReplicatedStateFromParameters(database.getParameters());
    return currentLastEventId;
  }
Gets the event id stored in database denoting the last loaded event id.
@param dbName the name of database
@param hiveDb the hive object
@return event id from the database
@throws HiveException
ql/src/java/org/apache/hadoop/hive/ql/exec/repl/OptimisedBootstrapUtils.java