You can set up the DataAssist server behavior: Single Record Insert to insert the value into the database if you like instead of hand coding the insert.
Set the trigger to before page load and leave the Go to as blank. Set the value to be inserted as the parameter value.