make metadata storage pluggable

Since this SQL command is specific to derby, I think it might make sense to move it to the DerbyConnector