Fixes of surfcertids logging

- initialization fix
- partially fix of connection error when inserting, added TODO
Merge pull request #128 from katkad/log_surfcertids

Fixed surfcertids logging