Updating SQLs with new permission
Fixing mistaken commit
Fixing permissions used