Fix read error on uncreated db.