Added db and schema name handling.
Added option to output to a directory of separate files.
Minor changes.
Minor changes.