generalize and allow the database to be named something other than hon_log.  plus fix a bug with getMostRecent when the db is empty