create version table method
new version table should be initialized to version=0