Fixing PUT/DELETE functions (requires URL parameters, rather than post payload)