I removed the backend from here and added a status for recording in the database when generating a report