fixed delete and getByID functionality to handle requests with non-numeric ID.