fix up db configuration settings and permissions