update ip for db