adding mongoose wrapping for http access