Use connection pool in other thread