Adds separate database connections for each thread.