Can a newly imported csv file replace an existing data collection that sits in Wix database? Currently, it just adds additional rows to the data collection, and the formatting looks all messed up as the new CSV file has totally different fields and numbers of rows.
Short answer: No
Alt solution: Use the truncate() function to clear all data before uploading new data.