Update SQL queries for remove.php to reflect new database structure.