Directory fix for sqlite