Permissions improvements
Migrate db to unicode