fixed db permissions