Add index on the pua table for peformance reasons.

Credits go to "lirakin" on IRC