Patched extauth script to auto-reconnect upon loss of connectivity to the database server