'Return the databases we want to include, or empty list for all.'

def get_included_databases(self):

    databases = set()
    databases.update(self._plain_db.keys())
    for (_, namespace) in self._regex_map:
        (database_name, _) = namespace.source_name.split('.', 1)
        if ('*' in database_name):
            return []
        databases.add(database_name)
    return list(databases)
