Optimize how sentiment analysis worker inserts SQL records