make metadata storage pluggable

same for the package name, let's spell out postgresql in full