fixed errors on opening databases