code review: write datatable to flash, read table from flash and types