in reply to CPAN SQL Monitor
Pretty sure that DBI Shell will do what you want, at CPAN here CPAN: DBI::Shell