Furby, why don\'t you look at what I did here to include the \"create table\" query in your code:
http://www.hawkee.com/snippet.php?snippet_id=1262
You just need to dump the table layout with mysqldump and paste it into a variable.