I just found the 1851 census record for Robert Cunningham but it says his parents were Robert and Elizabeth Cunningham rather than Mary.