make metadata storage pluggable

I didn't write this SQL command, so I am not sure why..