Check valid shares stored in postgres and set state to expired if they no longer appear on the share chain