Major rewrite

Added a group by to get one row per contact, fixed the regex for phone numbers so it works, removed duplicate phones and emails from results, etc.