added local permissions database and related exception