Adding primitive mongodb support