Fix database permissions after installation.