make the 'previous' button update the database in the test_questions_controller