Adding unique keys to a couple tables

This adds some missing UNIQUE KEYS to the badges and issuers table (this was causing a few tests to fail, but would also be a Bad Thing in general.)