update mongodb methods