Fixes to Permissions Base and Database Select Feature