fixed db.open() error