Add bson serialization