Added code to save with one click: First avail ID
Changed comment
Added else for when ID exists
Changed method of acquiring max ID
Now tracks database cursor; should give back unused ID
Added minor comments
Merge pull request #170 from UPDDI/Issue-#159

Issue #159