Add handle id to handles. This required adding an autoincrement field (hid) to the database, changing the primary key in the database from the id (ie. shock node id) to be the new autoincrement field (hid). It required changing the logic mostly in the persist_handle function, where the INSERT ON DUPLICATE KEY UPDATE clause had to be broken into a if (hid) then update else insert construct.