How can I find out who granted a privilege, and when it was granted by querying the database?