New cmd line params, check for lost counter value

Added command line params:

-E <num>: Specify the # of errors per host before the host is ignored
-C:    Insert current counter value in a column named currvalue

Added a check that will skip the database insert when the cached counter value is lost (unless the current counter value is also zero).