A example to save data in the sqlite database and isolated storage with csv file. Btw, it containing some test to check the performance of the target hardware.
https://meineweltinmeinemkopf.blogspot.de/2018/04/sqlite-oder-csv-auf-raspberry-pi-23-auf.html