update db connection