Database Update

In anwers changed a_var to var_id
Created Table variable with var_id, q_id(question), var_name, var_type