Script to generate SQL GRANT statements for all relations from tables.sql