addes schema creation
heavy refactoring
introducing registry class