changed the template used for all non inserted records to syslog table
cleaned up and fixed some buggy parts - I was bored :P