added constructors to orm classes