in reply to Automate an SQL tool

If what you want is a perl-based command line tool that works with almost any database backend, use dbish, the DBI interactive shell, that comes with DBI::Shell.