make metadata storage pluggable

At first this method and some other methods were abstract but fangjin recommended to make SQLMetadataConnector as a concrete class.