db_linked has a static function to convert an array of object to a hash keyed by the objects primary keys