Easy Chart Save Tag Pens

How would I go about saving an easy chart tag pen dataset to a SQL table, then reading back the table but have the tag path be dynamic depending on which folder the values are in? The problem I run into is the tag pens will always be referencing different values based on which ones are dropped onto the chart and saved.

I would save the tag path with the dynamic part replaced with a key string like %DeviceTagPath% and %DeviceName%, then simply replace the key(s) with the dynamic value(s) when you pull it back out