dogs in ancient history