bdg, I mean no disrespect, but the matter is honestly not that trivial. Ultimately, you are right - it does come down to getting some queries right, but you quickly discover that it's an ongoing effort. Three months since I'm doing this, and even now I'd be happier if I could manage duplicates better. It's not a simple select query for sure.
So now you only need to manage that table so it does not grow out of control, create a basic interface, some kind of alerts... all for $15-30 month. I don't know you, my hours are way more expensive. For this kind of non-core features SaaS is the way to go.