fixing perl time variable, the way 'localtime' formats the time was used incorrectly here
adding a script that updates the discovery table in the database