make metadata storage pluggable

make active a boolean