minor fixes and send logs to diag service

Tablename could also give some more info here.