SQL script which fills rights table is updated for column changes