Add MongoDB functionality