Updated HandleCommands to operate on local key value store