Rewrote permission migrating for Update-Database. Fixes #22