Fixing db path directory creation