make metadata storage pluggable

Does derby need to be added here?