Use DbConnector.isPostgreSQL everywhere we used getDatabaseProductName before
Optimize DbSegmentPublisher.publishSegment