When restoring a db on windows if renaming the old db fails because some other process has locked the file, wait a little and try again