changed db url for online
changed the port settings
resolved socket error for heroku
resolved heroku socket error