fixed database folder creation