update db and its ut