make metadata storage pluggable

postgresql storage should not require mysql as a dependency.