EntityValueBase now keeps track of whether the value is from the database, and whether the PK was modified, store/createOrUpdate now use that to avoid doing a query if possible