Fix up DB permissions