update mongodb example