Close DB connection to avoid connection leakage
fix style
_bsonEncoder/_bsonDecoder were not thread safe
Merge remote-tracking branch 'origin/fix_thread_safety' into chery_season