[COOK-2832] fix grants.sql template

- fix littered comments when code block not included from template
- make DROP DATABASE command idempotent