fix for db reconnect too fast