Created a data service to handle post requests