Refactoring
Metadata db is configurable