Fix off-by-one errors in SQL inserts
Read star data from sqlite right after reading it from disk, and replace the contents of the struct with that.  When all the subtables are being read in, we can drop the read from the file.