make program to login to the mongodb instance associated with heroku

The script is ready.