Close db connections.