Command line flag, as it also needs to be able to take effect during migration.
Also make sure our journal size limit is in effect when checkpointing.
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>