def dedup(objects):
    """ De-duplicate list of objects based on dbId key"""

    new = []
    seen = {}

    for object in objects:
        dbId = object['dbId']
        if dbId in seen:
            continue
        seen[dbId] = 1
        new.append(object)

    return new