use multiple db connections to try and prevent early closure