Added UNIQUE constraints on the session_key attributes, renamed survey_key to session_key to better generalize its function