A new study genetically shows dogs existed almost 5,000 years earlier than scientists could prove.