fixed EntityManager injection and persistence config.