## This function stores your temporary data into the players permanent storage using its ID
$data merge storage db:$(tempid) {(yourcustomnbt):$(yourcustomtempnbt)}