Export data from database table to delimited text file