Persisting the template name for deployments

maybe we should validate presence of name and do a data migration then?