in reply to graphviz, perl and sql2dot ?

Have you looked at GraphViz::DBI yet?

blokhead