How many users are you talking about that might have access to the
web script? If it is in the 10s, consider just giving them
each readonly or really minimal read-write access to the DB.
Put the DB's access rights system to work and have the users
put in their db password to access the scripts.
--
$you = new YOU;
honk() if $you->love(perl)