oops made clean up of data table only possible if it was not present before trying to register a new device