build the secured update bson