Created Permission domain and made changes to DBRealm