Check duplicate in database 1