I've search for discussions on this topic but I didn't see my exact situation.

Basically, I want to use templates for my site, but I want to store the templates in MySQL. It doesn't have be as sophisticated as vBulletin, but it should allow me to just edit the row and save it.

Any help is appreciated.