SENTRY-343: Privileges query from database support for 'with grant option'