Refactor validateChallenge
Use affectedRows instead of updatedRows. A row will not be updated if the updated challenge is the same as what is currently persisted