updating query for username