fixing connection closed errors with updated postgresql driver
codebase used to migrate to java8 the production system