msgid is stored as text type. It should be binary blob. ``` $ sqlite3 messages.dat SQLite version 3.40.1 2022-12-28 14:03:47 Enter ".help" for usage hints. sqlite> SELECT TYPEOF(msgid) FROM inbox LIMIT 1; text ``` hash in inventory is OK. ``` sqlite> SELECT TYPEOF(hash) FROM inventory LIMIT 1; blob ```