Corrected primary key for privilege_rule table (see #57)

Includes migration script that should be safe to run even if the database has already been updated.