move ORM to separated component