changed to connect to mongolab db
added config to base db connection on environment
refactored db config