Fix for bug where deleting a user caused a constraint violation.
Merge pull request #78 from crawley/master

Fix for bug where deleting a user caused a constraint violation.