More code cleanups
ham_db_check_integrity no longer requires the txn parameter
Journal files are now switched when all transactions are 'flushed' (and not when they're just committed)
Committed transactions are now queued and not flushed immediately