Thomas Sandwith, Mayor of Beverley (1837)