fixed survey redirects + added save survey results to db