find bug for database duplicate item