update db eliminate dups