def is_db_ref(a_hash):
    """ Is this hash a reference to the database?

    If a hash (sense inventories, frames, etc) is equal to
    ``{'DB' : a_cursor}`` that means instead of using the hash as
    information we should go look for our information in the database
    instead.

    """

    return a_hash and a_hash.keys() == ['DB']