Thread local database sessions.