Rewrite moderation system permit to use userID's

Right now moderation system save permit row in moderation_permit with user username.

Possible better rewrite it to save userId instead of username.