web app now injects entity manager