Replace void* with vectors & free C allocated bson data