def createConnection(self):
"""Create new database connection."""
db = connections.databases[self.alias]
backend = load_backend(db['ENGINE'])
return backend.DatabaseWrapper(
db, self.alias, allow_thread_sharing=True)