* Adding permission schema when opening the Realm * Adding permission schema implicitly for query based Realms * Remove old code * Remove outdated test