updated query on editprofile