Mmot data. Service into separate file
Data service functions now return a promise object