added registered entity manager factory and transaction management