add db implement unit test