make set pool data , get pool data work and some optimisation
This PR is trying to clean up all the thing related to PoolStruct, set-pooldata , query pool datas
This PR is trying to clean up all the thing related to PoolStruct, set-pooldata , query pool datas