modifying grounding to use try-with-resources, hopefully this will get rid of most of the idle connections remaining in postgres