Improved sql export (includes DROP TABLE's)