make metadata storage pluggable

I thought we might not need username and password for embedded derby. Should it always have username and password?