Various minor tweaks

Various minor tweaks including setting wait cursor whilst waiting for
SqlServer connection form to open (because it takes a while).
Add version to title and title bar

Add version to title and title bar.
Refill the lut_version table between scripts

Refill the lut_version table from the database between scripts in case
it has been changed within the script.