I was required to program for a database driven web page and I had used DBI module directly on each cgi's to connect to database.
Most people say it is not a good practice to make Database connections directly and advised on using wrappers around DBI.
What sort of security threats can come also it would be very helpful if some one could guide me on how to get a wrapper around DBI done.