find the uid as a "foreign key" on a record

fixes https://github.com/mozilla/fxa-auth-server/issues/773 (or not).
wtf? when did this change? its not at all like the original in heap.js, no wonder its broken...