Possibly fixed a bug that deletes all the data in a well table when adding new data.