Multi-threaded database context.