fixing sqlfilesdirectory