updating db connections