Changing data function names to GET, POST and DELETE