Close db connections after request