Minor refactoring to survey check code
Added a not-null constraint for survey name field, to ensure we never get a survey with null name. Will need to run 'rake db:migrate:up VERSION=20131122084534' command to apply the Migration to the DB