patch from rjbs to add by_key contructor to Record.pm