refactoring CategoryDAOImpl