Fixed several places where an attempt was being made to open databases in spite on NOT being on homehost.