Just a thought - if the James MOFFAT (shoemaker)living in Carlisle and married a Janet IRVING in Annan as she was from Annan, then her death would possibly be registered in Carlisle, and would have given me some information.
On James's death entry 1857 he was a widower (no name) and then he returned to Annan, where died in Lodgings.