add the rawID needed to populate the templates DB object