edited db util and lapcounter