add entity manager to app