use sql orm reconstruct