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