Added execute grants for functions. Added function functionExists(), and procedure grantExecuteIfExists().