danw
committed
on 16 Aug 02
converted template queries to std db api