Add method of getting metadata from kv