Defined data variable not added to insert