Better way to do db.get by ids.