Adds upsert flag for DbCollection.update()

Hi Vadim, I added an upsert option for DbCollection.update() along with a test.