How to update flat datasets?