Change table "EntityGroupsHierarchy" to "EntGroupsHierarchy" so it's short enough with security_ prefix to work with Oracle databases.
Implemented fix for permissions service that was using "instances" for the user restriction, preventing query-caching from working against the version of NHibernate we use.