Assorted fixes

- Fixed bug in the saving a Rental query

- Fixed bug where application crashes after renting a locker

- MainWindow now generates a term with the same UUID every time on
startup. Because of the matching UUID, it doesn't create duplicates.
Clunky, but it'll work until we get the Term adding feature done.