Prepare the validation of keys and prepare the quiz values insert