Change database permission settings