updating db connection