$db->lookup_uniquename($uniquename)
Returns the entity identified by uniquename, or undef if no entity is found.
$uniquename is the name returned by $ent->uniquename().