Add table for recording which filters are assigned for which hints.

For some reason sqlalchemy is not using InnoDB as the default storage
engine so it must be specified to use foreign key constraints. I don't
know why it does this or why MySQL's error message doesn't tell you
something to that effect.