simplify Octets serialization and update mapdb