def get_identifier(db_obj):
    """Given a database object, return the identifying IDs as a dictionary"""
    ids = { 'uuid' : str(db_obj.uuid) }
    try:
        ids['site'] = db_obj.site_id
    except AttributeError:
        pass
    return ids