make metadata storage pluggable

let's spell out postgresql in full