bug fix + incorporate database updates

bug: The static call to get the last inserted id requires
the proper (word) class name qualifier.
bug: alpha numeric entries are allowed to have numerical
entries beyond 1-20, so add those as they are encountered.
Incorporate the database design upgrade that allows getting
unique records for these two tables without a primary id.