Use transactions after all, the disk is otherwise continually 100% writing with sqlite.