introduced metadata db wrapper.