loading rights directly from the database