make metadata storage pluggable

I wanted to leave it as part of the table creation statement, but derby didn't let me do it.. It was not possible to make multiple statements at the same time.