upgrading SQL file for permissions