Replaced db.get by db.collection