created data service to for all api requests