Privileges query from database support for 'with grant option'