check mongo exists