code: public static Database createHiveDatabase(String dbName, CatalogDatabase db) {
  		Map<String, String> props = db.getProperties();
  		return new Database(
  			dbName,
  			db.getDescription().isPresent() ? db.getDescription().get() : null,
  			null,
  			props);
  	}
docs: Creates a Hive database from CatalogDatabase.