add EntityTable to keep track of the entityId in each access_record