Added mongodb support and some api calls for node