add base for main controllers; add ORM entities