def register(patch)
      q = @db[:tdp_patch].where(name: patch.name)
      if q.empty?
        @db[:tdp_patch].insert(
          name: patch.name,
          signature: patch.signature
        )
      else
        q.update(signature: patch.signature)
      end
    end
def register(patch)
      q = @db[:tdp_patch].where(name: patch.name)
      if q.empty?
        @db[:tdp_patch].insert(
          name: patch.name,
          signature: patch.signature
        )
      else
        q.update(signature: patch.signature)
      end
    end
Registers a patch (a Patch object) as applied.