def METHOD_NAME(self, host):
    database = self.get_database(host)
    if database is None:
        return {}
    return {
        'project_name': database.project and database.project.name,
        'engine': str(database.engine),
        'name': database.name,
        'id': database.id,
        'is_locked': bool(database.current_locked_task),
        'infra': {
            'id': database.infra.id,
            'name': database.infra.name
        }
    }