keep database connection from idling
Re-added old leaflet draw code to be incorporated for desktop version