deletion: Fix bug in query for metadata deletion
The query was incorrectly sent with the wiki in its string format
rather than the numeric one. This was masked because the check
was not correctly handled on dry-mode. This caused metadata file
deletions to not be deleted on the database.