Fixed error in opening an existing DB (did not append filename to path).