Victoria and David Beckham provided the inspiration for the BBC’s latest Agatha Christie adaptation, its makers have said.