make metadata storage pluggable

let's spell out PostgreSQL in full