A stab at global and thread local context for databases.