use pool to connect sql