Fix reconnecting to pgsql database after connection loss.