Adding new survey - server-side code