Initial code for submitting a survey
Mostly? working code for surveys on the backend