adds database permissions