Create a wrapper for PEAR::DB and Smarty

This is straight form the O'reilly PHP dev center, that should be enough to motivate you to investigate it for yourself.
http://www.onlamp.com/pub/a/php/2003/04/17/pear_smarty.html