fixed brokerdb serialization