setup the doctine entity manager