make metadata storage pluggable

any reason we are disabling autocommit here? should we disable it by default?