Perl is a UNIX scripting language that is a very popular and programmer-friendly
language for interfacing with databases.
Here is a simple example of a perl script which interfaces with a database. Here is the output for that example if run from the shell.
Here is a much more complex example of using perl to interface with the database, and here is a sample run of that program.
Helpful PERL and DBI links