fix username sync issue

combine updateUsers with pastMessages and fix username sync for new users