I hope I understood you right: You your template in a your DB ...
Something like
html ... tmpl_var name='var_name' ... /html
I do not think you can parse it into another template and exept the vars to work.
Possible solution: Write a short script, which extracts all templates from the DB and creates files. If you change something "re-cache" :-).
Then it should work.
Until know vlibTemplate does not store it's templates in a DB. Please read:
Templates from DB