I think the sqlite open->write->close, open->write->close,open->write->close logic is a little odd for a database databases are more like open-> Insert to a tableA, insert to tableB, insert to tableC, -> close
I think the sqlite open->write->close, open->write->close,open->write->close logic is a little odd for a database databases are more like open-> Insert to a tableA, insert to tableB, insert to tableC, -> close