Add 'do' to stata filter command and use SubprocessFilter class. Try to fix storage for kv store.