Description
writeSchemaSqlToFile should just test if a connection has been established. If there is no connection it should imply that the alterDatabase attribute is false, and write the full ddl create script to the file.
Users are forgetting to use the alterDatabase attribute. And if there is no connection present an empty file is written.