If I attempt
DatabaseExportCSV ""
I get prompted to name the new file and a .csv file gets created. But if I attempt
DatabaseExportCSV "~/Junk.txt"
I get
FileSave error: The file "Junk.txt' doesn't exist.'
regardless if there is no file, or an empty file with that name at that location.