Refactor sqlite_v1_initialize() into two functions and fix the pattern of prepare/finalize in tsk_hdb_new() and tsk_hdb_add_str().