Moving domain classes to legacy DB