SQL Script to generate aspect specific rights