def METHOD_NAME(self, infra):
    instances = []
    for host in infra.hosts:
        database_instance = host.database_instance()
        if database_instance:
            instances.append(database_instance)
    return instances