Changed db.collection calls to not create variables