Fix for file (access denied) when attaching with localDB.