Fix update.php failing with MySQL (fixes #298)

MySQL doesn't support the DELETE syntax introduced in commit 15ffa09.