update news db operation. transfer some util classes to util package.