presto-hive/src/main/java/io/prestosql/plugin/hive/metastore/Database.java/Database/equals
class Database:    @Override
    public boolean equals(Object o)
    {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }

        Database database = (Database) o;
        return Objects.equals(databaseName, database.databaseName) &&
                Objects.equals(location, database.location) &&
                Objects.equals(ownerName, database.ownerName) &&
                ownerType == database.ownerType &&
                Objects.equals(comment, database.comment) &&
                Objects.equals(parameters, database.parameters);
    }