update mongo c wrapper