Added logging functionality to delete.php (now logs when deleting something)