Added threadlocal of getting graph db object