submits data to the database and corrected some questions missing answer values