fixed events.UPLINK_DISCONNECTED never sent
fixed DB never cleared after delink