Creates survey in the database, other small changes