Also make sure our journal size limit is in effect when checkpointing.
Avoid failure when inserting file with very large block list
Switch the database from LevelDB to SQLite, for greater stability and simpler code. Co-authored-by: Tommy van der Vorst <tommy@pixelspark.nl> Co-authored-by: bt90 <btom1990@googlemail.com>