add version to events table and entity_versions table to quickly track version for entities