upgrade: use StoreEntry object in upgrade
We will make more use of the API in the next changeset, but just moving to use
entry is a significant change for the engine codebase.
# So GitLab doesn't think we're using tons of Perl*.t -linguist-detectable