Split getEntry to getData, getStates
Convert setEntry to setStates