integrating with mongo