Got setvalue for hidden input working.
Added context for database path.
Added initial calls and logic for database, to determine what ID to assign clueset.