db reconnect fix