db insertion is asynchronous

OK, sounds good. Did you check that our MongoDB version supports the w parameter? If so I think we can merge this.