Added Django's PermissionMixin to SQL-related models

As suggested by @adamalton on #103, I've updated the user model to include Django's `PermissionMixin` for the two SQL-related models.