in reply to Perl/CGI Database Techniques

This article shows how to automate some of it with Class::DBI.