Fixing db directory