Implemented backend for questionnaires, with db save.