Added factory to fetch data from heroku