Moved init of entity manager into constructor.