Convert OSError to logger.debug call if XInitThreads fails
Fix for stats which have the same name
Small fix for DB handler.
Merge pull request #406 from NielsZeilemaker/small_devel_fixes

Small devel fixes
Merge pull request #407 from LipuFei/db-handler-fix

Small fix for DB handler.