Update permissions database