Update dependances and add ThreadLocal for connection