Fix issue with DB location changer

I discovered a problem with the database location changer function in my testing, where it would crash if the file didn’t exist.  This is now fixed.