update users and contacts relations