role of dogs in human history