Fixed the bugs with the saving to the database with the session cookies. Needs to make sure every question on the survey is filled about before submitting.