Allow proxying of collections accessed by attribute

Collections can be accessed by db['collection'] or db.collection. MongoDBProxy was correctly proxying the former but not the latter. This fixes that.

(Note: This change was done by one of my coworkers, @richafrank, not me. I'm just submitting the PR for it. I don't want to falsely take credit for his change!)