Updated index.js to get the id from the new uploaded Complaint.