moved back to use pool as autowired from dao.