Added a SQL generator script.