move orm classes for right dependency