Smartanswers: registrations data query  - Add back mistakenly removed code

I put back the code that I removed in: https://github.com/alphagov/smart-answers/commit/6c0357f1c62e381a485171de4b37a6dd38942567