Parse-Dia-SQL converts Dia class diagrams into SQL. It is both a command line utility and a Perl module.