public List<String> getCreateDatabaseStmt(Set<String> dbNames) {
    List<String> allDbStmt = new ArrayList<>();
    for (String dbName : dbNames) {
      if (dbName.equals("default")) {
        continue;
      }
      ST command = new ST(CREATE_DATABASE_STMT);
      command.add(DATABASE_NAME, unparseIdentifier(dbName));
      allDbStmt.add(command.render());
    }
    return allDbStmt;
  }
Returns the create database query for a give database name.

@param dbNames
@return
ql/src/java/org/apache/hadoop/hive/ql/exec/DDLPlanUtils.java