make metadata storage pluggable

version should be VARCHAR(255)