Fixed database permissions