Implemented the delete and edit function for pain_management. Combined the insert functionality into edit. Use url ~/edit_pain_management.php?PainManagementID=&PainID=1 to insert new entry. Use ~/edit_pain_management.php?PainManagementID=4&PainID=1 to edit entry number 4. Implemented edit functionality for medicine and merged it with the insert functionality. Both are implemented in edit_medicine.php.