avoid duplicate error of db table