Joseph Humphry, Mayor of Sudbury 5 times between 1787 and 1807