serialize and deserialize ExecutionTrace

save to mongodb and retrieve from mongodb