old_contents: import pymongo
  from . import config
  
  _connection = None
  
  def get_connection(self):
      global _connection
      if _connection is None:
          _connection = pymongo.Connection(config.AUTOCLAVE_DATABASE_HOST, safe=True)
      return _connection
  
new_contents: import pymongo
  from . import config
  
  _connection = None
  
  def get_connection():
      global _connection
      if _connection is None:
          _connection = pymongo.Connection(config.autoclave.AUTOCLAVE_DATABASE_HOST, safe=True)
      return _connection
  
subject: Fix mongodb connection creation