Convert a list of database entries into a CSV.