ML: db.js changed so that bulk streams work