update the db connection way.