Move object_version and object_reference to versions database.