Added pie chart of 9 grouped modes of transportation. Fixed small bugs, including properly closing PostgreSQL database connections.