Extract Table

Note that this will output sql to drop and create the table