Re-add a finalize call I should not have removed, and fix a type mismatch.
Make sure to pull the updateable property from the SQLite index (KDB file) after opening it.
Merge remote-tracking branch 'sam/hashdb_sqlite' into hashdb_sqlite