Forgot to wrap update-state! value in a function. Also, it seems that reduce-kv is not available for cursors. Lets stick with good ol' reduce for now.