replace CID with CID_keys, add seqnums to schema
schema: rename "code_hex" to just "code", since everything in DB is hex