make perl critics happy
log start/ends can be undefined
changed collection access at some more places
mongodb needs collection name