Using the new metadata() method added by #1690, persist metadata on mvstore.
Using the new metadata() method added by #1690, persist metadata on mvstore.