refactoring BasketDaoIO