script to repopulate database from syslog