Allow adding questionnaired to dbs, add functions to update document