The only factual info we have on Andrew Gray is from the Returns for Seamen. James was very young when he died and there's no info about his place of birth. He's not with Margaret on the 1851 and could be anywhere on the 1841.
Dundee was the home port of the Idda.
Info on James' marriage cert and on Margaret's death cert was given by James. No other info. so far.
Gadget