fixed an duplication error in db