In the early 19th century, Humphry Davy was a scientific superstar, but then science and the world around him changed.