Use postgres JDBC driver with working .isValid implementation
Detect and re-establish closed connections, plus unit tests