In answer to your questions:
- The lambda is set to the the values of the entry's at the time the lambda is created.
It would be better to add a function that is called when the button is clicked,
it reads the values of the entry's and then callsadding_records
with the current values.
- The records are added to the database but the treeview has not not been given a way to show the updates.
Either add the new items or clearing the treeview and callingviewing_records()