implements ORM and set any configs