in reply to CGI and Database

What you are describing is what so much of Web programming is all about. There are several acronymns, but BREAD is one I'm used to: Browse, Read, Edit, Add, Delete.

Most frameworks, like Catalyst, Jiffy, Ruby-on-Rails, are designed to support the whole BREAD model. I'd spend some time looking at these frameworks.

Personally, I prefer CGI::Application. You can read my tutorial here, FWIW.

—Brad
"The important work of moving the world forward does not wait to be done by perfect men." George Eliot