Work on Surveys

MySQL isn't working right now, so it's not possible to test any of this.