cleanup mongo driver api