created mongodb install script and started using mongoose