Plague to coronavirus: how pandemics have transformed history