I can only find only one David James among HM troops who received the IMM, but he was involved in the Central India Campaign.
Could have been a civilian, though I don't have one on my OD list, or a member of EIC forces.
There was only one man with that surname, Pte. William James of the 32nd Foot, listed as receiving an IMM with Defence of Lucknow clasp i.e. having participated in the Siege of the Residency rather than the Relief forces. He died of wounds on 22 July 1857. Possibly a relative of the owner/builder of the house. It was quite common to try to commemorate participation in what was, for the British, a fundamental moment of imperial history.
Any connection with an OD or the Siege in general is, of course, of great interest to me, I'd appreciate receiving any further info. you receive.
(On a similar, though unconnected line, giving people event/place related names was another means of perpetuating such memories - e.g. my mother carried the (unused) second name 'Ypres', which was where her father met his end, and I was supposedly named for a man who 'bought it' at Arnhem.)