added functionality for creating a full survey in db from user input