Fixed bugs in UpdateDBWithDisconnectedUser.