Data recording into the versioning tables correctly